home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / vbasic / subvbx.exe / SUBVBVW.CPP < prev    next >
C/C++ Source or Header  |  1993-05-13  |  2KB  |  89 lines

  1. // subvbvw.cpp : implementation of the CSubvbxView class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "subvbx.h"
  6.  
  7. #include "subvbdoc.h"
  8. #include "subvbvw.h"
  9.  
  10. #ifdef _DEBUG
  11. #undef THIS_FILE
  12. static char BASED_CODE THIS_FILE[] = __FILE__;
  13. #endif
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CSubvbxView
  17.  
  18. IMPLEMENT_DYNCREATE(CSubvbxView, CFormView)
  19.  
  20. BEGIN_MESSAGE_MAP(CSubvbxView, CFormView)
  21.     //{{AFX_MSG_MAP(CSubvbxView)
  22.         // NOTE - the ClassWizard will add and remove mapping macros here.
  23.         //    DO NOT EDIT what you see in these blocks of generated code !
  24.     //}}AFX_MSG_MAP
  25. END_MESSAGE_MAP()
  26.  
  27. /////////////////////////////////////////////////////////////////////////////
  28. // CSubvbxView construction/destruction
  29.  
  30. CSubvbxView::CSubvbxView()  : CFormView(IDD_FORM)
  31. {
  32.     m_bFirstUpdate = TRUE;
  33. }
  34.  
  35. CSubvbxView::~CSubvbxView()
  36. {
  37. }        
  38.  
  39. /////////////////////////////////////////////////////////////////////////////
  40. // CSubvbxView initial update
  41.  
  42. void CSubvbxView::OnInitialUpdate()
  43. {  
  44.    if(m_bFirstUpdate!=FALSE)
  45.       {
  46.       m_MyGrid.SubclassVBControl(this,IDC_MYGRID,TRUE);
  47.       m_bFirstUpdate = FALSE;
  48.       }   
  49.       
  50.    CFormView::OnInitialUpdate();
  51. }
  52.  
  53. /////////////////////////////////////////////////////////////////////////////
  54. // CSubvbxView drawing
  55.  
  56. void CSubvbxView::OnDraw(CDC* pDC)
  57. {
  58.     CSubvbxDoc* pDoc = GetDocument();
  59.  
  60.     // TODO: add draw code here
  61. }
  62.  
  63.  
  64.  
  65. /////////////////////////////////////////////////////////////////////////////
  66. // CSubvbxView diagnostics
  67.  
  68. #ifdef _DEBUG
  69. void CSubvbxView::AssertValid() const
  70. {
  71.     CFormView::AssertValid();
  72. }
  73.  
  74. void CSubvbxView::Dump(CDumpContext& dc) const
  75. {
  76.     CFormView::Dump(dc);
  77. }
  78.  
  79. CSubvbxDoc* CSubvbxView::GetDocument() // non-debug version is inline
  80. {
  81.     ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CSubvbxDoc)));
  82.     return (CSubvbxDoc*) m_pDocument;
  83. }
  84.  
  85. #endif //_DEBUG
  86.  
  87. /////////////////////////////////////////////////////////////////////////////
  88. // CSubvbxView message handlers
  89.